package org.example.Contant;

import org.example.entity.User;

import java.util.HashMap;

public class CurrentUser {


    private static final HashMap<String, User> currentUser = new HashMap<>();

    public static User getCurrentUser(String key) {
        return currentUser.get(key);
    }

    public static void setCurrentUser(String key,User user) {
        currentUser.put(key, user);
    }


}
